package com.qqin.service;


import com.qqin.pojo.Goods;
import com.qqin.pojo.PageBean;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface GoodsService {
    PageBean page(Integer page, Integer pageSize);

    Goods selectById(Integer goodsId);

    List<Goods> selectByListed();

    List<Goods> selectByCondition(String goodsName);

    List<Goods> getPhoto(Integer photoNum);

    void add(Goods goods, Integer userId);

    Goods updateById(Goods goods);

    void delisting(Integer goodsId);

    String upload(MultipartFile photo) throws IOException;

}
